import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
	routes: [{
		path: '/',
		name: 'index',
		meta: {
			title: '用户条款与隐私政策'
		},
		component: () =>
			import('@/pages/index.vue')
	},{
		path: '/feedback',
		name: 'feedback',
		meta: {
			title: '帮助与反馈'
		},
		component: () =>
			import('@/pages/feedback.vue')
	},{
		path: '/invitationlist',
		name: 'invitationlist',
		meta: {
			title: '邀请列表'
		},
		component: () =>
			import('@/pages/invitationlist.vue')
	},{
		path: '/Clockchallenge',
		name: 'Clockchallenge',
		meta: {
			title: '打卡挑战赛规则'
		},
		component: () =>import('@/pages/Clockchallenge.vue')
	},{
		path: '/Growthvalue',
		name: 'Growthvalue',
		meta: {
			title: '成长值规则'
		},
		component: () =>
			import('@/pages/Growthvalue.vue')
	},{
		path: '/Honor',
		name: 'Honor',
		meta: {
			title: '荣誉值规则'
		},
		component: () =>
			import('@/pages/Honor.vue')
	},{
		path: '/download',
		name: 'download',
		meta: {
			title: 'CLOCK下载 '
		},
		component: () =>
			import('@/pages/download.vue')
	},{
		path: '/Community',
		name: 'Community',
		meta: {
			title: '社区说明'
		},
		component: () =>
			import('@/pages/Community.vue')
	},
	{
			path: '/register',
			name: 'register',
			meta: {
				title: '注册',
				requiresAuth: false
			},
			component: () =>
				import('@/pages/register.vue')
		},
		{
			path: '/Mobilephone/:id/:cn',
			name: 'Mobilephone',
			meta: {
				title: '验证码',
				requiresAuth:false
			},
			component: () =>import('@/pages/Mobilephone.vue')
		},
		{
			path: '/resetpasswords',
			name: 'resetpasswords',
			meta: {
				title: '修改密码',
				requiresAuth:false
			},
			component: () =>import('@/pages/resetpasswords.vue')
		},
		{
			path: '/paymentcode',
			name: 'paymentcode',
			meta: {
				title: '设置支付密码',
				requiresAuth:false
			},
			component: () =>import('@/pages/paymentcode.vue')
		},
        {
            path: '/doublejoy',
            name: 'doublejoy',
            meta: {
                title: '翻翻乐',
                requiresAuth:false
            },
            component: () =>import('@/pages/doublejoy.vue')
        },
        {
            path: '/lotteryquery',
            name: 'lotteryquery',
            meta: {
                title: '开奖查询',
                requiresAuth:false
            },
            component: () =>import('@/pages/lotteryquery.vue')
        },
        {
            path: '/regulation',
            name: 'regulation',
            meta: {
                title: '开奖规则',
                requiresAuth:false
            },
            component: () =>import('@/pages/regulation.vue')
        },
        {
            path: '/changlexchange',
            name: 'changlexchange',
            meta: {
                title: '翻翻乐兑换',
                requiresAuth:false
            },
            component: () =>import('@/pages/changlexchange.vue')
        }
	]
})

export default router